package com.ewzj.bigdata.di.module;

import com.jess.arms.di.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;

import com.ewzj.bigdata.mvp.contract.EditFullScreenContract;
import com.ewzj.bigdata.mvp.model.EditFullScreenModel;


@Module
public class EditFullScreenModule {
    private EditFullScreenContract.View view;

    /**
     * 构建EditFullScreenModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public EditFullScreenModule(EditFullScreenContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    EditFullScreenContract.View provideEditFullScreenView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    EditFullScreenContract.Model provideEditFullScreenModel(EditFullScreenModel model) {
        return model;
    }
}